package com.tushare.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tushare.entity.LastBasic;
import com.tushare.mapper.LastBasicMapper;
import com.tushare.service.ILastBasicService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author jobob
 * @since 2021-08-22
 */
@Service
public class LastBasicServiceImpl extends ServiceImpl<LastBasicMapper, LastBasic> implements ILastBasicService {

    @Override
    public boolean saveLastBasics(List<LastBasic> list) {
        if (list == null || list.size() == 0) {
            return false;
        }
        return saveBatch(list);
    }

    @Override
    public boolean deleteAllLastBasic() {
        return getBaseMapper().deleteAllLastBasic();
    }
}
